#include <gtkmm.h>
#include "SmartArray.h"
#include "SmartObject.h"
#include "Palette.h"

class Palette_Renderer:public Gtk::DrawingArea, public Reference<Palette>
{
protected:
	Gtk::ColorSelectionDialog mCSD;
	Color& prepare(int, Cairo::RefPtr<Cairo::Context>&);
	virtual bool on_draw(GdkEventExpose *);
	virtual bool on_click(GdkEventButton *);
public:
	Palette_Renderer();
	Palette_Renderer& operator = ( Palette* );
};